package baidu;

import java.util.Scanner;

public class Main2 {
    /*
    给定一个整数x
    返回一个字符串
    回文子串的数量恰好为x
     */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        /*
        r d
        e r
        d e
         */
        if(n == 1){
            System.out.println("r");
        }else if (n == 2){
            System.out.println("re");
        } else if (n == 3) {
            System.out.println("red");
        } else if (n == 4) {
            System.out.println("rer");
        } else if (n == 5) {
            System.out.println("rerd");
        } else if (n == 6) {
            System.out.println("rerde");
        } else if (n == 7) {
            System.out.println("rerder");
        } else if (n == 8) {
            System.out.println("rerderd");
        } else if (n == 9) {
            System.out.println("rerderde");
        } else if (n == 10) {
            System.out.println("rerderder");
        } else if (n == 11) {
            System.out.println("rerderderd");
        } else if (n == 12) {
            System.out.println("rerderderde");
        } else if (n == 13) {
            System.out.println("rerderderder");
        }else {
            System.out.println(x(n));
        }
    }

    public static String x(int n){
        if(n == 1){
            System.out.println("r");
        }else if (n == 2){
            System.out.println("re");
        } else if (n == 3) {
            System.out.println("red");
        } else if (n == 4) {
            System.out.println("rer");
        }else {
            char c = x(n-1).charAt(n-3);
            if(c == 'r'){
                return x(n-1)+"d";
            } else if (c == 'e') {
                return x(n-1)+"r";
            }else if (c == 'd') {
                return x(n-1)+"e";
            }
        }
        return "red";
    }
}
